Optimal. Leaf size=195 \[ -\frac {b n \left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )}{e^2}+\frac {\left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}-\frac {2 d \left (d+e \sqrt {x}\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}+\frac {4 a b d n \sqrt {x}}{e}+\frac {4 b^2 d n \left (d+e \sqrt {x}\right ) \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{e^2}+\frac {b^2 n^2 \left (d+e \sqrt {x}\right )^2}{2 e^2}-\frac {4 b^2 d n^2 \sqrt {x}}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 195, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 8, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {2451, 2401, 2389, 2296, 2295, 2390, 2305, 2304} \[ -\frac {b n \left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )}{e^2}+\frac {\left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}-\frac {2 d \left (d+e \sqrt {x}\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}+\frac {4 a b d n \sqrt {x}}{e}+\frac {4 b^2 d n \left (d+e \sqrt {x}\right ) \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{e^2}+\frac {b^2 n^2 \left (d+e \sqrt {x}\right )^2}{2 e^2}-\frac {4 b^2 d n^2 \sqrt {x}}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2295
Rule 2296
Rule 2304
Rule 2305
Rule 2389
Rule 2390
Rule 2401
Rule 2451
Rubi steps
\begin {align*} \int \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \, dx &=2 \operatorname {Subst}\left (\int x \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx,x,\sqrt {x}\right )\\ &=2 \operatorname {Subst}\left (\int \left (-\frac {d \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e}+\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e}\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {2 \operatorname {Subst}\left (\int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx,x,\sqrt {x}\right )}{e}-\frac {(2 d) \operatorname {Subst}\left (\int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx,x,\sqrt {x}\right )}{e}\\ &=\frac {2 \operatorname {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e \sqrt {x}\right )}{e^2}-\frac {(2 d) \operatorname {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^2 \, dx,x,d+e \sqrt {x}\right )}{e^2}\\ &=-\frac {2 d \left (d+e \sqrt {x}\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}+\frac {\left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}-\frac {(2 b n) \operatorname {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e \sqrt {x}\right )}{e^2}+\frac {(4 b d n) \operatorname {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right ) \, dx,x,d+e \sqrt {x}\right )}{e^2}\\ &=\frac {b^2 n^2 \left (d+e \sqrt {x}\right )^2}{2 e^2}+\frac {4 a b d n \sqrt {x}}{e}-\frac {b n \left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )}{e^2}-\frac {2 d \left (d+e \sqrt {x}\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}+\frac {\left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}+\frac {\left (4 b^2 d n\right ) \operatorname {Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e \sqrt {x}\right )}{e^2}\\ &=\frac {b^2 n^2 \left (d+e \sqrt {x}\right )^2}{2 e^2}+\frac {4 a b d n \sqrt {x}}{e}-\frac {4 b^2 d n^2 \sqrt {x}}{e}+\frac {4 b^2 d n \left (d+e \sqrt {x}\right ) \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{e^2}-\frac {b n \left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )}{e^2}-\frac {2 d \left (d+e \sqrt {x}\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}+\frac {\left (d+e \sqrt {x}\right )^2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 150, normalized size = 0.77 \[ \frac {-2 a^2 \left (d^2-e^2 x\right )+2 b \left (d+e \sqrt {x}\right ) \left (-2 a d+2 a e \sqrt {x}+3 b d n-b e n \sqrt {x}\right ) \log \left (c \left (d+e \sqrt {x}\right )^n\right )-2 a b n \left (d-e \sqrt {x}\right )^2-2 b^2 \left (d^2-e^2 x\right ) \log ^2\left (c \left (d+e \sqrt {x}\right )^n\right )+b^2 e n^2 \sqrt {x} \left (e \sqrt {x}-6 d\right )}{2 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 225, normalized size = 1.15 \[ \frac {2 \, b^{2} e^{2} x \log \relax (c)^{2} + 2 \, {\left (b^{2} e^{2} n^{2} x - b^{2} d^{2} n^{2}\right )} \log \left (e \sqrt {x} + d\right )^{2} - 2 \, {\left (b^{2} e^{2} n - 2 \, a b e^{2}\right )} x \log \relax (c) + {\left (b^{2} e^{2} n^{2} - 2 \, a b e^{2} n + 2 \, a^{2} e^{2}\right )} x + 2 \, {\left (2 \, b^{2} d e n^{2} \sqrt {x} + 3 \, b^{2} d^{2} n^{2} - 2 \, a b d^{2} n - {\left (b^{2} e^{2} n^{2} - 2 \, a b e^{2} n\right )} x + 2 \, {\left (b^{2} e^{2} n x - b^{2} d^{2} n\right )} \log \relax (c)\right )} \log \left (e \sqrt {x} + d\right ) - 2 \, {\left (3 \, b^{2} d e n^{2} - 2 \, b^{2} d e n \log \relax (c) - 2 \, a b d e n\right )} \sqrt {x}}{2 \, e^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.19, size = 361, normalized size = 1.85 \[ \frac {1}{2} \, {\left ({\left (2 \, {\left (\sqrt {x} e + d\right )}^{2} \log \left (\sqrt {x} e + d\right )^{2} - 4 \, {\left (\sqrt {x} e + d\right )} d \log \left (\sqrt {x} e + d\right )^{2} - 2 \, {\left (\sqrt {x} e + d\right )}^{2} \log \left (\sqrt {x} e + d\right ) + 8 \, {\left (\sqrt {x} e + d\right )} d \log \left (\sqrt {x} e + d\right ) + {\left (\sqrt {x} e + d\right )}^{2} - 8 \, {\left (\sqrt {x} e + d\right )} d\right )} b^{2} n^{2} e^{\left (-1\right )} + 2 \, {\left (2 \, {\left (\sqrt {x} e + d\right )}^{2} \log \left (\sqrt {x} e + d\right ) - 4 \, {\left (\sqrt {x} e + d\right )} d \log \left (\sqrt {x} e + d\right ) - {\left (\sqrt {x} e + d\right )}^{2} + 4 \, {\left (\sqrt {x} e + d\right )} d\right )} b^{2} n e^{\left (-1\right )} \log \relax (c) + 2 \, {\left ({\left (\sqrt {x} e + d\right )}^{2} - 2 \, {\left (\sqrt {x} e + d\right )} d\right )} b^{2} e^{\left (-1\right )} \log \relax (c)^{2} + 2 \, {\left (2 \, {\left (\sqrt {x} e + d\right )}^{2} \log \left (\sqrt {x} e + d\right ) - 4 \, {\left (\sqrt {x} e + d\right )} d \log \left (\sqrt {x} e + d\right ) - {\left (\sqrt {x} e + d\right )}^{2} + 4 \, {\left (\sqrt {x} e + d\right )} d\right )} a b n e^{\left (-1\right )} + 4 \, {\left ({\left (\sqrt {x} e + d\right )}^{2} - 2 \, {\left (\sqrt {x} e + d\right )} d\right )} a b e^{\left (-1\right )} \log \relax (c) + 2 \, {\left ({\left (\sqrt {x} e + d\right )}^{2} - 2 \, {\left (\sqrt {x} e + d\right )} d\right )} a^{2} e^{\left (-1\right )}\right )} e^{\left (-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.08, size = 0, normalized size = 0.00 \[ \int \left (b \ln \left (c \left (e \sqrt {x}+d \right )^{n}\right )+a \right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.54, size = 179, normalized size = 0.92 \[ -{\left (e n {\left (\frac {2 \, d^{2} \log \left (e \sqrt {x} + d\right )}{e^{3}} + \frac {e x - 2 \, d \sqrt {x}}{e^{2}}\right )} - 2 \, x \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right )\right )} a b - \frac {1}{2} \, {\left (2 \, e n {\left (\frac {2 \, d^{2} \log \left (e \sqrt {x} + d\right )}{e^{3}} + \frac {e x - 2 \, d \sqrt {x}}{e^{2}}\right )} \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right ) - 2 \, x \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right )^{2} - \frac {{\left (2 \, d^{2} \log \left (e \sqrt {x} + d\right )^{2} + e^{2} x + 6 \, d^{2} \log \left (e \sqrt {x} + d\right ) - 6 \, d e \sqrt {x}\right )} n^{2}}{e^{2}}\right )} b^{2} + a^{2} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.47, size = 186, normalized size = 0.95 \[ x\,\left (a^2-a\,b\,n+\frac {b^2\,n^2}{2}\right )-\sqrt {x}\,\left (\frac {d\,\left (2\,a^2-2\,a\,b\,n+b^2\,n^2\right )}{e}-\frac {2\,d\,\left (a^2-b^2\,n^2\right )}{e}\right )+{\ln \left (c\,{\left (d+e\,\sqrt {x}\right )}^n\right )}^2\,\left (b^2\,x-\frac {b^2\,d^2}{e^2}\right )-\ln \left (c\,{\left (d+e\,\sqrt {x}\right )}^n\right )\,\left (\sqrt {x}\,\left (\frac {2\,b\,d\,\left (2\,a-b\,n\right )}{e}-\frac {4\,a\,b\,d}{e}\right )-b\,x\,\left (2\,a-b\,n\right )\right )+\frac {\ln \left (d+e\,\sqrt {x}\right )\,\left (3\,b^2\,d^2\,n^2-2\,a\,b\,d^2\,n\right )}{e^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \log {\left (c \left (d + e \sqrt {x}\right )^{n} \right )}\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________